// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import 'babel-polyfill'
import Vue from 'vue'
import App from './App'
import router from './router/index'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import './style/index.css'
import echarts from 'echarts'
import filter from './filter'

import Print from 'vue-print-nb'
Vue.use(Print);

Vue.use(ElementUI)
Vue.use(filter)


import VideoPlayer from 'vue-video-player'
import 'video.js/dist/video-js.css'
import 'vue-video-player/src/custom-theme.css'
Vue.use(VideoPlayer)



import numberInput from './directive/numberInput.js'
Vue.use(numberInput);

import request from './config/request'
Vue.prototype.$http = request

import pagination from './components/pagination.vue' // 公用分页
Vue.component('pagination', pagination)

import noRight from './components/no-right'
Vue.component(noRight.name, noRight)

import importBox from './components/import-box'
Vue.component(importBox.name, importBox)

// import axios from 'axios'
// Vue.prototype.$http=axios;
// axios.defaults.baseURL = 'http:localhost:8080';
// axios.defaults.timeout=1000,
//默认的contenttype为json以及utf-8；
// axios.defaults.headers={'Content-Type': 'text/html;charset=gb2312'}

Vue.prototype.$echarts = echarts

Vue.config.productionTip = false

/* eslint-disable no-new */
export default new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
